﻿using System.Data;

namespace TurtleEngine
{
	 /// <summary>
	 ///
	 /// </summary>
	 public class AllColumnsHelper
	 {
		  /// <summary>
		  /// All columns
		  /// </summary>
		  private static DataTable allColumns = new DataTable("AllColumns");

		  /// <summary>
		  /// Gets all columns.
		  /// </summary>
		  /// <value>
		  /// All columns.
		  /// </value>
		  public static DataTable AllColumns
		  {
				get { return allColumns; }
		  }

		  /// <summary>
		  /// Gets all columns.
		  /// </summary>
		  public static void GetAllColumns()
		  {
				allColumns.Clear();
				allColumns = Utility.DBConnection.GetSchema("AllColumns");

				//Utility.PrintDatatable(allColumns);
				Utility.WriteXML(allColumns, allColumns.TableName + ".xml");
		  }
	 }
}